<template>
<div class="order-header">
    <div class="container clearfix">
        <div class="header-log">
            <a href="/index"></a>
        </div>
        <div class="title">
            <h2>{{title}}
                <slot name="tip"></slot>
            </h2>
        </div>
        <div class="username">
            <a href="javascript:;">{{username}}</a>
        </div>
    </div>
</div>
</template>

<script>
    import { mapState } from 'vuex'
    export default {
        name: "order-header",
        props:{
            title:String
        },
        computed:{
            ...mapState(['username'])
        }
    }
</script>

<style lang="scss">
.order-header{
    padding: 29px 0px;
    border-bottom: 2px solid #ff6600;
    .header-log{
        float: left;
    }
    .title,.username{
        display: inline-block;
        height: 55px;
        line-height: 55px;
    }
    .title{
        font-size: 20px;
        margin-left: 54px;
        float: left;
        color: #333333;
        h2{
            float: left;
            span{
                font-size: 14px;
                margin-left: 14px;
                display: inline-block;
                padding-top: 15px;
                color: #999999;
                font-weight: 200;
            }
        }
    }
    .username{
        float: right;
        a{
            color: #666666;
            font-size: 16px;
        }
    }
}
</style>
